
import { createSlice } from '@reduxjs/toolkit'


export const jobSlice = createSlice({
  name: 'job',
  initialState: {
    dataList: [6,6,6]
  },
  reducers: {
    putJobList: (state, action) => {
      const { payload } = action
      // console.log('state:',state.dataList, state.dataList.length,'action:', action)
      return {...state, dataList: payload}
    }
  }
})

export const { putJobList } = jobSlice.actions



 